package cn.edu.scau.cmi.luotiansheng.abstractFactory.factory;

import cn.edu.scau.cmi.luotiansheng.abstractFactory.domainAbstractClass.CookMeat;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		if(brand.equalsIgnoreCase("Wens")) {
			return new WensFactory();
		}
		if(brand.equalsIgnoreCase("Aonong")) {
			return new AonongFactory();
		}
		if(brand.equalsIgnoreCase("Tianbang")) {
			return new TianbangFactory();
		}
		return null;
		
	}
	
	public abstract CookMeat createBeef();
	public abstract CookMeat createPork();
	public abstract CookMeat createChicken();
}
